/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ems.lib;

public class Resource {
    private int id;
    private String name;
    private String number;
    private String status;
    public final static String AVAILABLE = "AVAILABLE";
    public final static String UNAVAILABLE = "UNAVAILABLE";

    public Resource(int iden, String nam, String no, String stat) {
        this.id = iden;
        this.name = nam;
        this.number = no;
        this.status = stat;

    }

    public Resource(int iden, String nam, String no) {
        this.id = iden;
        this.name = nam;
        this.number = no;
        this.status = AVAILABLE;
    }

    public Resource(String nam, String no) {
        this.id = 0;
        this.name = nam;
        this.number = no;
        this.status = AVAILABLE;
    }

    public Resource() {
        this.id = 0;
        this.name = "";
        this.number = "";
        this.status = AVAILABLE;
    }

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the number
     */
    public String getNumber() {
        return number;
    }

    /**
     * @param number the number to set
     */
    public void setNumber(String number) {
        this.number = number;
    }

    /**
     * @return the status
     */
    public String getStatus() {
        return status;
    }

    /**
     * @param status the status to set
     */
    public void setStatus(String status) {
        this.status = status;
    }
}
